//
//  GTComment.swift
//  GitOSC-Swift
//
//  Created by 李萍 on 16/3/10.
//  Copyright © 2016年 李萍. All rights reserved.
//

import UIKit
import SwiftyJSON

class GTComment: NSObject {
    var id: Int!
    var createdAt: String!
    var projectId: Int!
    var commitID: String!
    
    var author: GTUser!
    var note: String!
    
    init(json:JSON) {
        id = json["id"].intValue
        createdAt = json["created_at"].stringValue
        projectId = json["project_id"].intValue
        commitID = json["commit_id"].stringValue
        
        author = GTUser.init(json: json["author"])
        note = json["note"].stringValue
    }
}
